<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>样式测试</title>
    <style>
      .dog {
        background-color: blue;
      }
      .poh {
        background-color: blueviolet;
        color: red;
      }
    </style>
  </head>
  <body>
    <div age="1" class="poh sli" onclick="console.log(this,88)"></div>
    <script>
      let dv = document.querySelector("div");
      var span = document.createElement("SPAN");
      var txt = document.createTextNode("\u00D7");
      span.className = "close";
      span.appendChild(txt);
      dv.appendChild(span);
     dv.onclick=function(){
       console.log(this,33333)
     }
     dv.addEventListener('click',function(){
       console.log(this,99999)
     })
    </script>
  </body>
</html>
